package com.schoolcloud.common.exception;

public class ServiceException extends RuntimeException{

    private final int code;

    public ServiceException(int code, String message) {
        super(message);
        this.printStackTrace();
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
